/*
 * ====================================================================
 * $Id: HermesSQL.java 12188 2006-04-27 04:50:46Z patsch $
 * ====================================================================
 *
 * (C) 2001-2005 KJEW Investments (ACN 116279380) 
 *               as trustee for the Dockhorn Family Trust
 *               trading as SKEX (ABN 96 381 807 305)
 *                     
 * [All rights reserved]. This product and related documentation are protected
 * by copyright restricting its use, copying, distribution, and decompilation.
 * No part of this product or related documentation may be reproduced in any
 * form by any means without prior written authorization of SKEX.
 * Unless otherwise arranged, third parties may not have access to this product
 * or related documents.
 *
 */

package com.lagerplan.basisdienste.util.persistence;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;

import org.apache.log4j.Logger;
import util.logging.LogLoader;

import db.ConnectionTracker;
import db.MyDB;
import db.MySQL;
import util.config.XProperties;

/**
 * This class implements the methods necessary for reading from and writing
 * into a specific DB. 
 * 
 * If you need a new connection pool for a new DB, do the following:
 * (1) Follow instructions in SkexDB.java (or IlpDB.java)
 * (2) Search & Replace IlpDB by MyClassDB, HermesSQL by MyClassSQL in here
 *
 * @author Patrick Dockhorn
 * @version $Revision: 12188 $, $Date: 2006-04-27 14:50:46 +1000 (Thu, 27 Apr 2006) $
 */

public class SQliteSQL extends MySQL
{
	//====================================================================
	//                     MEMBERS
	//====================================================================
	protected static Logger log = LogLoader.getLogger(SQliteSQL.class);
	
	private static SQliteDB db = SQliteDB.getInstance();
	private static XProperties properties = SQliteDB.properties;
	
	/**
	 * class constructor gets an instance of IlpDB
	 */
	public SQliteSQL()
	{
		try
		{
			SQliteSQL.db = SQliteDB.getInstance();
		}
		catch (Exception e)
		{
			log.error("Error during initialization of database: " + e.getMessage());
		}
	}
	
	/**
	 * @return properties
	 */
	protected XProperties getProperties()
	{
		return properties;
	}
	/**
	 * @return SkexDB
	 */
	protected MyDB getDB()
	{
		return db;
	}
	/**
	 * @return poolname
	 */
	public String getPoolName()
	{
		return db.getPoolName();
	}
	/**
	 * @return log
	 */
	protected Logger getLogger()
	{
		return log;
	}
	
	
}

	
